﻿
namespace CCompiler {
    public enum TokenCode {
        AddOp = (int)'+',
        SubOp = (int)'-',
        MulOp = (int)'*',
        DivOp = (int)'/',
        ModOp = (int)'%',
        Equal = (int)'=',
        Less = (int)'<',
        Greater = (int)'>',
        OpenBrace = (int)'{',
        CloseBrace = (int)'}',
        OpenParen = (int)'(',
        CloseParen = (int)')',
        OpenBracket = (int)'[',
        CloseBracket = (int)']',
        Comma = (int)',',
        Colon = (int)':',
        SemiColon = (int)';',
        Not = (int)'!',
        LessOrEq = 400,
        GreaterOrEq = 401,
        EqualEqual = 402,
        NotEq = 403,
        Or = 404,
        And = 405,
        PlusPlus = 406,
        MinusMinus = 407,
        Id = 256,
        Num = 257,
        String = 258,
        Void = 300,
        Byte,
        Short,
        Int,
        Float,
        Double,
        Char,
        If,
        Else,
        For,
        Do,
        While,
        Switch,
        Case,
        Default,
        Return,
        Break,
        Continue,
        Goto,
        PrintInt,
        PrintStr,
        PrintChar,
        ReadInt,
        ReadStr,
        IncStackPtr,
        DecStackPtr,
        Param,
        Enter,
        Call
    }
}